#ifndef CPCAPAUTH_H
#define CPCAPAUTH_H

#include <QObject>

class CPCapAuth : public QObject
{
    Q_OBJECT
    Q_PROPERTY(QString type READ type WRITE setType NOTIFY typeChanged)
    Q_PROPERTY(QString username READ username WRITE setUsername NOTIFY usernameChanged)
    Q_PROPERTY(QString password READ password WRITE setPassword NOTIFY passwordChanged)
public:
    explicit CPCapAuth(QObject *parent = Q_NULLPTR);
    ~CPCapAuth();

    QString type() const;
    void setType(const QString &type);

    QString username() const;
    void setUsername(const QString &username);

    QString password() const;
    void setPassword(const QString &password);

Q_SIGNALS:
    void typeChanged();
    void usernameChanged();
    void passwordChanged();

private:
    QString m_type;
    QString m_username;
    QString m_password;
};

#endif // CPCAPAUTH_H
